package com.yanmaohu.yulia.bean;

/**
 * @author Bright Lee
 */
public final class FullOrderingForm implements OrderingForm {

    private int beginIndex;
    private int endIndex;
    private OrderingCategory orderingCategory;

    public FullOrderingForm(int beginIndex, OrderingCategory orderingCategory) {
        this.beginIndex = beginIndex;
        this.endIndex = orderingCategory.getEndIndex();
        this.orderingCategory = orderingCategory;
    }

    @Override
    public int getBeginIndex() {
        return beginIndex;
    }

    @Override
    public int getEndIndex() {
        return endIndex;
    }

    public OrderingCategory getOrderingCategory() {
        return orderingCategory;
    }

}
